<!--  -->
<template>
    <el-dialog custom-class="custom-dialog"  v-model="state" title="详情" width="600"  :before-close="handleClose">

        <div class="items">
            <div class="item">
                id:{{ detailsData?.id }}
            </div>
            <div class="item" >
                姓名：{{ detailsData?.userName }}
            </div>
            <div class="item" >
                手机号：{{ detailsData?.mobile }}
            </div>
            <div class="item" >
                房间号：{{ detailsData?.houseid }}
            </div>
            <div class="item" >
                缴费类型：{{ detailsData?.type }}
            </div>
            <div class="item" >
                时间：{{ detailsData?.addtime }}-{{ detailsData?.enddate }}
            </div>
            <div class="item" >
                应缴金额：{{ detailsData?.price }}
            </div>
            <div class="item" >
                导入时间：{{ detailsData?.addtime }}
            </div>
       
            <div class="item" >
                添加者：{{ detailsData?.admin }}
            </div>
            <div class="item" >
                状态：{{ detailsData?.state==1?"已缴费":"未缴费" }}
            </div>
       
       


        </div>


    </el-dialog>

</template>

<script lang='ts' setup>
import { watch } from 'vue';
import { ref } from 'vue'

const props = defineProps({
    isVisible: {
        type: Boolean,
    },
    detailsData:{
        type:Object,
    }

})


let state = ref(props.isVisible)
watch(() => props.isVisible, (newValue) => {
    state.value = newValue;
});



const emits = defineEmits(['updateIsVisible'])

const handleClose = () => {
    emits('updateIsVisible', false)
}
</script>
<style scoped>
.custom-dialog .el-dialog__header {
  text-align: center;
}
.items {
    padding: 0 30px;
}

.item{
    margin-top: 25px;
    line-height: 20px;
}
.item:nth-last-child(1){
    margin-bottom: 20px;
}

.item span {
    font-size: 16px;
    font-weight: 600;
    color: #333;
}

.item p {
    font-size: 14px;
    color: #666;
}

.item img {
    width: 100%;
    height: 200px;
    object-fit: cover;
}
</style>